<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="../../../Themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../Themes/icon.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/demo.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/common.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/print.css">
		<script type="text/javascript" src="../../../JS/jquery.min.js"></script>
		<script type="text/javascript" src="../../../JS/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../../JS/common.js"></script>
		<script type="text/javascript" src="../../../JS/SHA-1.js"></script>
		<script type="text/javascript" src="../../../JS/finance.js"></script>
	</head>

	<body>
		<div class="div_print_info_portait">
			<h1 align="center">绵阳市高水农副产品批发有限公司配送中心</h1>
			<h1 align="center">设备维护</h1>
			<form id="ff" method="post" style="width:95%">
				<table cellspacing="4" style="margin-top: 10px;margin-left: 0px;margin-bottom: 10px;">
					<tr>
						<th>订单编号</th>
						<td>
							<input type="text" name="ORDER_NO" class="print_text_style" />
						</td>
					</tr>
				</table>
				<table class="altrowstable printtable" style="text-align: left;">
					<tr>
						<th width="15%">区域名称</th>
						<td width="35%">
							<input style="width: 100%;" type="text" name="REGION" class="print_text_style" />
						</td>
						<th width="15%">区域类型</th>
						<td width="35%">
							<input style="width: 100%" type="text" name="REGION_TYPE" class="print_text_style" />
						</td>
					</tr>
					<tr>
						<th>维修人员</th>
						<td>
							<input style="width:100%;" type="text" name="WORKER" class="print_text_style" />
						</td>
						<th>维修完成时间</th>
						<td>
							<input style="width: 100%;" type="text" name="FINISH_TIME" class="print_text_style" />
						</td>
					</tr>
				</table>
				<table id="OrderInforTable" class="altrowstable printtable" style="margin-top: 0px;text-align: center;">
					<tr>
						<th>
							<div name="DEVICE_NAME">设备名称</div>
						</th>
						<th>
							<div name="DEVICE_TYPE">设备类型</div>
						</th>
						<th>
							<div name="DEVICE_RP">设备负责人</div>
						</th>
						<th>
							<div name="FEES">维修金额</div>
						</th>
					</tr>
				</table>
				<table class="altrowstable printtable" style="margin-top: 0px;">
					<tr>
						<th width='36%'> 人民币金额合计（小写） </th>
						<td width='64%'> <input class="print_text_style" id="sumxx"> </input>
						</td>
					</tr>
					<tr>
						<th> 人民币金额合计（大写） </th>
						<td class="dx"> <input class="print_text_style" id="sumdx"> </input>
						</td>
					</tr>
				</table>
				<div>
					<div style="float: left;margin-left: 10px;"> 负责人： <span> </span></div>
					<div style="position: absolute;left:500px;"> <span> </span></div>
				</div>
			</form>
		</div>
	</body>
	<script type="text/javascript">
		var id = getID();/*得到当前界面的id*/
		$(document).ready(function(){
        loadRemote();
       });
		function loadRemote() {
			$('#ff').form('load', RemoteLinkAddress + '/market/maintain/findbyid.do?ID=' + id);
			$.ajax({
				type: "get",
				url: RemoteLinkAddress + '/market/maintain/findbyid.do?ID=' + id,
				dataType: "json",
				success: function(result) {
					var newTd = new Array();
					var _data = result.rows;
					for(var i = 0; i < _data.length; i++) {
						var newTr = OrderInforTable.insertRow();
						newTd[0] = newTr.insertCell()
						if(_data[i].DEVICE_NAME != undefined)
							newTd[0].innerText = _data[i].DEVICE_NAME;

						newTd[1] = newTr.insertCell();
						if(_data[i].DEVICE_TYPE != undefined)
							newTd[1].innerText = _data[i].DEVICE_TYPE;
							
						newTd[2] = newTr.insertCell();
						if(_data[i].DEVICE_RP != undefined)
							newTd[2].innerText = _data[i].DEVICE_RP;
						
						newTd[3] = newTr.insertCell();
						if(_data[i].FEES != undefined)
							newTd[3].innerText = _data[i].FEES;
					}
					$("#sumxx").val(result.FEES_SUM);
					$("#sumdx").val(changeMoneyToChinese(result.FEES_SUM));
				}
			});
		}
	</script>

</html>